Optimal. Leaf size=42 \[ -\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b x} \sqrt {a c-b c x}}{a \sqrt {c}}\right )}{a \sqrt {c}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {94, 214}
\begin {gather*} -\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b x} \sqrt {a c-b c x}}{a \sqrt {c}}\right )}{a \sqrt {c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 94
Rule 214
Rubi steps
\begin {align*} \int \frac {1}{x \sqrt {a+b x} \sqrt {a c-b c x}} \, dx &=b \text {Subst}\left (\int \frac {1}{-a^2 b c+b x^2} \, dx,x,\sqrt {a+b x} \sqrt {a c-b c x}\right )\\ &=-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b x} \sqrt {a c-b c x}}{a \sqrt {c}}\right )}{a \sqrt {c}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 76, normalized size = 1.81 \begin {gather*} \frac {\sqrt {a-b x} \left (\log \left (-1+\frac {\sqrt {a+b x}}{\sqrt {a-b x}}\right )-\log \left (a+\frac {a \sqrt {a+b x}}{\sqrt {a-b x}}\right )\right )}{a \sqrt {c (a-b x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(78\) vs.
\(2(34)=68\).
time = 0.09, size = 79, normalized size = 1.88
method | result | size |
default | \(-\frac {\sqrt {b x +a}\, \sqrt {c \left (-b x +a \right )}\, \ln \left (\frac {2 c \,a^{2}+2 \sqrt {c \,a^{2}}\, \sqrt {c \left (-b^{2} x^{2}+a^{2}\right )}}{x}\right )}{\sqrt {c \left (-b^{2} x^{2}+a^{2}\right )}\, \sqrt {c \,a^{2}}}\) | \(79\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 47, normalized size = 1.12 \begin {gather*} -\frac {\log \left (\frac {2 \, a^{2} c}{{\left | x \right |}} + \frac {2 \, \sqrt {-b^{2} c x^{2} + a^{2} c} a \sqrt {c}}{{\left | x \right |}}\right )}{a \sqrt {c}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.46, size = 110, normalized size = 2.62 \begin {gather*} \left [\frac {\log \left (-\frac {b^{2} c x^{2} - 2 \, a^{2} c + 2 \, \sqrt {-b c x + a c} \sqrt {b x + a} a \sqrt {c}}{x^{2}}\right )}{2 \, a \sqrt {c}}, -\frac {\sqrt {-c} \arctan \left (\frac {\sqrt {-b c x + a c} \sqrt {b x + a} a \sqrt {-c}}{b^{2} c x^{2} - a^{2} c}\right )}{a c}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 13.19, size = 83, normalized size = 1.98 \begin {gather*} \frac {i {G_{6, 6}^{5, 3}\left (\begin {matrix} \frac {3}{4}, \frac {5}{4}, 1 & 1, 1, \frac {3}{2} \\\frac {1}{2}, \frac {3}{4}, 1, \frac {5}{4}, \frac {3}{2} & 0 \end {matrix} \middle | {\frac {a^{2}}{b^{2} x^{2}}} \right )}}{4 \pi ^{\frac {3}{2}} a \sqrt {c}} - \frac {{G_{6, 6}^{2, 6}\left (\begin {matrix} 0, \frac {1}{4}, \frac {1}{2}, \frac {3}{4}, 1, 1 & \\\frac {1}{4}, \frac {3}{4} & 0, \frac {1}{2}, \frac {1}{2}, 0 \end {matrix} \middle | {\frac {a^{2} e^{- 2 i \pi }}{b^{2} x^{2}}} \right )}}{4 \pi ^{\frac {3}{2}} a \sqrt {c}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.68, size = 55, normalized size = 1.31 \begin {gather*} -\frac {2 \, \sqrt {-c} \arctan \left (\frac {{\left (\sqrt {b x + a} \sqrt {-c} - \sqrt {-{\left (b x + a\right )} c + 2 \, a c}\right )}^{2}}{2 \, a c}\right )}{a c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.22, size = 92, normalized size = 2.19 \begin {gather*} -\frac {\left (\ln \left (\frac {\sqrt {c\,\left (a-b\,x\right )}-\sqrt {a\,c}}{\sqrt {a+b\,x}-\sqrt {a}}\right )-\ln \left (\frac {{\left (\sqrt {c\,\left (a-b\,x\right )}-\sqrt {a\,c}\right )}^2}{{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^2}-c\right )\right )\,\sqrt {a\,c}}{a^{3/2}\,c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________